#32 new
ih

installation setup problem

Reported by ih | January 7th, 2009 @ 07:32 AM

I am getting errors with a basic installation (basically following railscast 67, but grabbing the plugin from git) when I try to create a user or login. I followed the instructions at the github repository and everything generated fine and http://localhost:3000/login loads correctly, but when I click the log in button I get the error:

NameError in SessionsController#create

uninitialized constant User::Authentication

RAILS_ROOT: /home/irvin/code/rails/todo Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ dependencies.rb:102:in const_missing' app/models/user.rb:4 lib/authenticated_system.rb:138:inlogout_keeping_session!' app/controllers/sessions_controller.rb:10:in create'

Also when I go to http://localhost:3000/signup I get the following:

NameError in UsersController#new uninitialized constant User::Authentication

RAILS_ROOT: /home/irvin/code/rails/todo Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ dependencies.rb:102:in const_missing' app/models/user.rb:4 app/controllers/users_controller.rb:5:innew'

I am using the following environment: Ruby version 1.8.7 (i486-linux) RubyGems version 1.3.1 Rails version 2.2.2 Active Record version 2.2.2 Action Pack version 2.2.2 Active Resource version 2.2.2 Action Mailer version 2.2.2 Active Support version 2.2.2 Application root /home/irvin/code/rails/todo Environment development Database adapter sqlite3 Database schema version 20090106210012

Thanks

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Restful Authentication Generator

This widely-used plugin provides a foundation for securely managing user
authentication:
* Login / logout
* Secure password handling
* Account activation by validating email
* Account approval / disabling by admin
* Rudimentary hooks for authorization and access control.

http://github.com/technoweenie/restful-authentication/tree

People watching this ticket

Pages